package com.jvyou.app.ds.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 考试科目表(CourseSubject)表实体类
 *
 * @author 橘柚
 * @since 2025-04-18 14:48:56
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ds_course_subject")
public class CourseSubject implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * ID主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 科目代码(如K1、K2等)
     */
    @TableField("subject_code")
    private String subjectCode;

    /**
     * 科目名称
     */
    @TableField("subject_name")
    private String subjectName;

    /**
     * 科目类型(theory理论/practice实操/safety安全)
     */
    @TableField("subject_type")
    private String subjectType;

    /**
     * 科目描述
     */
    @TableField("description")
    private String description;

    /**
     * 渲染的颜色
     */
    @TableField("color")
    private String color;

    /**
     * 是否必考(1必考 0选考)
     */
    @TableField("is_required")
    private String isRequired;

    /**
     * 创建人
     */
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    /**
     * 更新人
     */
    @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    /**
     * 逻辑删除标志（0-未删除，1-已删除）
     */
    @TableField("is_deleted")
    private String isDeleted;

    /**
     * 乐观锁版本号
     */
    @TableField("version")
    private Integer version;

}
